/*
 * Copyright (c) 2010 CCX(China) Co.,Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * CCX(China) Co.,Ltd. ("Confidential Information").
 * It may not be copied or reproduced in any manner without the express 
 * written permission of CCX(China) Co.,Ltd.
 *
 * @author luosisi
 * Date: 2010-7-5 上午10:22:15
 */
package com.ccxe.manage.dao;

import com.ccxe.manage.model.UserBean;
/**
 * @author luosisi user表的增、删、改、查 操作
 */
public abstract class UserDAO extends AbstractPageDao{

	public abstract UserBean getById(String uid);

	public abstract int addUser(UserBean user);

	public abstract  int deleteUser(String userId);

	public abstract int updateUser(UserBean user,boolean isUpdate);
	/**
	 * 查询密码是否正确
	 * @param uid 用户ID
	 * @param pwd 密码
	 * @return 密码是否正确
	 */
	public abstract boolean verifyPassword(String uid,String pwd);
	
	/**
	 * 更新密码
	 * @param uid 用户ID
	 * @param pwd 密码
	 * @return 更新成功数量
	 */
	public abstract int updatePassword(String uid,String pwd);
	
	public abstract UserBean getByIdIsExsit(String uid);

}
